package com.headingdata.d1_polymorphism.d5_abstract;

public class Test {
    public static void main(String[] args) {
        Animal d = new Dog();
        d.setName("小狗欢欢");
        d.cry();

        Animal c = new Cat();
        c.setName("小猫花花");
        c.cry();

    }
}
